// 书写所有关于 banner 的接口请求

// 导入我们封装好的 axios 实例
import request from '@/utils/requiest'

// 添加一个订单
export const addOrderApi = (userid: string) => request.post('/order/addOrder', { userid })

// 查看全部订单
 export const orderAllApi=(userid:string)=>request.post("/user/orderlist",{userid})

// 3. 修改地址信息
interface MyAddressInfo {
  userid: string,
  name: string,
  tel: string,
  province: string,
  city: string,
  county: string,
  addressDetail: string,
  time: string,
}
export const updateOrderAddress=(info: MyAddressInfo)=>request.post("/order/updateOrderAddress",{ info })

// 确认订单
export const ConfigOrderInfoApi =( userid:string , time:string)=>request.get('/order/confirmOrder',{params:{ userid ,time }})

